<template>
  <div class="test-container">
    <div class="item" v-for="n in types" :key="n">
      <Icon :type="n"/>
      <h4>{{ n }}</h4>
    </div>
  </div>
</template>

<script>
// import Icon, { types } from "./components/Icon";
import Icon, { types } from "./";
console.log(types);
export default {
  components: {
    Icon,
  },
  data() {
    return {
      types,
    }
  }
};
</script>

<style scoped>
.test-container {
  display: flex;
  width: 600px;
  margin: 20px auto;
  justify-content: center;
  flex-wrap: wrap;
}
.item {
  margin: 20px;
  text-align: center;
}
.iconfont {
  font-size: 40px;
}
</style>
